# -*- coding:utf-8 -*-
class Solution:
    def FindNumbersWithSum(self, array, t):
        # write code here
        a = len(array)
        if a<1 :
            return []
        f = 0
        l = a-1
        while f<l:
            if array[f]+array[l] == t:
                return [array[f],array[l]]
            elif array[f]+array[l] > t:
                l-=1
            else:
                f+=1
        return []

s=Solution()
print(s.FindNumbersWithSum([1,2,4,7,11,15],15))